<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @property bool $type 类型:1=优才计划,2=高材计划,3=专材计划,4=留学
 * @property int $id
 * @property string $createtime
 * @property string $data_ids 资料整理集合
 * @property string $name 名称
 * @property-read mixed $data
 * @mixin \think\Model
 */
class TalentDataClass extends Model
{
    protected $createTime = 'createtime';

    function getDataAttr($value,$data)
    {
        $valueArr = explode(',', $data['data_ids']);
        return TalentData::select($valueArr);
    }
}
